<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/22
 * Time: 21:27
 */

use yii\widgets\LinkPager;
use yii\helpers\Url;
$this->title = '拍卖中心';
?>
<style type="text/css">
    .pig_item_div{float:left;width: 180px; height: 260px;margin:8px 8px; position: relative;}
    .pig_item_div img{padding:15px 10px;}
    .pig_algebra{position: absolute; left: 150px; top: 10px;font-size: 16px; font-weight: bold; color: #70DB93}
    .pig_algebra font{font-size: 15px;padding-left: 2px; font-weight: normal}
    .pig_price{position: absolute;left: 60px; top: 235px;color: #FF7F00;font-weight: bold;font-size: 14px;}
    .pig_att{position: absolute; left: 20px; top: 210px}
    .select-gen{width: 50px;}
    .form-search{padding-top: 10px}
</style>
<div class="site-index">
<?php echo $this->render('/public/top'); ?>
<?php if (!empty($list)):?>
<?php foreach ($list as $key => $item):?>
    <div class="pig_item_div pig-bg<?php echo $item->getPetBack()?>">
        <a href="/pet/hang-detail?pid=<?php echo $item->pid?>&user_id=<?php echo $item->pid?>">
            <img src="/images/pig/p<?php echo $item->style?>.svg" width="140">
        </a>
        <div class="pig_algebra">
            <?php echo $item->algebra?><font>代</font>
        </div>
        <div class="pig_att">
            <?php echo $item->grow.'/'.$item->nuggets?> · <?php echo $item->height?> kg
        </div>
        <div class="pig_price">
            <?php echo $item->price?> wkc
        </div>
    </div>
<?php endforeach;?>
<?php else:?>
<div class="col-lg-5">
    <p>
        近期准备拍卖.....请耐心等候
    </p>
</div>
<?php endif;?>
</div>
